package org.jctc.els.modules.biz.entity.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * <p>
 * 学生和家长的关联表
 * </p>
 *
 * @author lyh
 * @since 2021-03-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("poc_student_parent")
@ApiModel(value="StudentParent对象", description="学生和家长的关联表")
public class StudentParent extends Model<StudentParent> {

   // private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id;

    @ApiModelProperty(value = "学生ID")
    private Long studentId;

    @ApiModelProperty(value = "家长ID")
    private Long parentId;

    private Date createTime;

    private Date modifiedTime;

    private Long createUserId;

    @ApiModelProperty(value = "昵称")
    private String nickname;

    @ApiModelProperty(value = "手机号码")
    private String mobile;

    @ApiModelProperty(value = "手机验证状态 1：已通过  0：未通过")
    private Integer mobileStatus;

    @ApiModelProperty(value = "学校ID")
    private Long schoolId;


    /**  @Override
    protected Serializable pkVal() {
        return this.id;
    }
    **/
}
